# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        Young  
# Name:         less1_03
# Description:
# Author:       asus
# Date:         2019/3/20
#-------------------------------------------------------------------------------


num = 100
a_list = [2,23,45,'p',0]

def mul(*args):
    ret = []
    try:
        for item in args:
            ret.append(num / item)
    except Exception as e:
        return -1,e
    return 1,ret

if __name__ == '__main__':
    tem = mul(*a_list)
    print(type(tem[1]))# 测试异常的类型
    if tem[0] == -1:
        print(tem[0],tem[1])
    else:
        print(tem)

